package 适配器模式;

public class 适配器模式 {
    public static void main(String[] args) {
        LegacyRectangle legacyRectangle=new LegacyRectangle();
        Shape shapeAdapter = new RectangleAdapter(legacyRectangle);
        shapeAdapter.draw(10, 20, 50, 30);
    }
}
